|
|
|
|
|
|
|
Designing the Print Report Dialog Box |
|
|
|
|
|
|
|
|
There are a handful of report parameters that you can set using the Crystal Reports Pro Control. Instead of setting them in Visual Basic 5 code, you'll create a simple report dialog box that can be used to set the most common parameters. This dialog box is portable, so you can use it in any future Visual Basic 5 program. |
|
|
|
|
|
|
|
|
Use Figure 6.23 and the information in Table 6.8 to construct a generic Print Report dialog box. Please note that you will be adding text boxes that have their Visible property set to False, meaning that they won't appear at runtime. These controls should simply be placed in a convenient position (such as the open space between the Printer Setup and Exit command buttons). |
|
|
|
|
|
|
|
|
Figure 6.23.
Building a generic Print Report dialog box. |
|
|
|
|
| Table 6.8. Control information for the Print Report dialog box. | | Control | Property | Setting | | Form | Name | frmReport | | BackColor | Light Gray | | Caption | Print Report | | Height | 2475 | | Width | 6540 | | Save As | Report.frm | | Command Button | Name | cmdOK | | Caption | &OK | | Height | 330 | | Left | 5100 | | Top | 240 | | Width | 1200 | | Command Button | Name | cmdPrnSetup | | Caption | Printer &Setup | | Height | 330 |
|
|
|
|
|
|
(table continued on next page) |
|
|
|
|
|